package com.hsc.mvc.conversion;

/**
 * @author
 * @date 2025-06-03
 * @Description 字符串数组转为Double数组
 * String [] -> int []
 */
public class StringArray2IntArrayConvertor implements ConversionStretagy<String[], int[]> {
    @Override
    public int[] covert(String[] source) throws Exception {
        int[] target = new int[source.length];
        for (int i = 0; i < source.length; i++) {
            target[i] = Integer.valueOf(source[i]);
        }
        return target;
    }
}
